package com.seven.jdk8.anno;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

/**
 * .本类是MyAnnotation的容器类，用来存放MyAnnotation注解，所以参数为数组类，并且参数名称与MyAnnotation中的参数名称一致
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value={CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE})
public @interface MyAnnotations {
    MyAnnotation[] value();
}
